<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-config-edit">
        <input id="configKey" name="configKey" class="form-control" th:value="${config.configKey}"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">配置项：</label>
            <div class="col-sm-8">
                <input class="form-control" th:value="${config.configKey}" disabled>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">参数值：</label>
            <div class="col-sm-8">
                <input id="configValue" name="configValue" th:value="${config.configValue}" class="form-control"
                       type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">说明：</label>
            <div class="col-sm-8">
                <textarea id="note" name="note" th:text="${config.note}" class="form-control" type="text"></textarea>
            </div>
        </div>
        <!--  <div class="form-group">
              <label class="col-sm-3 control-label">创建者：</label>
              <div class="col-sm-8">
                  <input id="createBy" name="createBy" th:value="${config.createBy}" class="form-control" type="text">
              </div>
          </div>
          <div class="form-group">
              <label class="col-sm-3 control-label">创建时间：</label>
              <div class="col-sm-8">
                  <input id="createTime" name="createTime" th:value="${config.createTime}" class="form-control"
                         type="text">
              </div>
          </div>
          <div class="form-group">
              <label class="col-sm-3 control-label">更新者：</label>
              <div class="col-sm-8">
                  <input id="updateBy" name="updateBy" th:value="${config.updateBy}" class="form-control" type="text">
              </div>
          </div>
          <div class="form-group">
              <label class="col-sm-3 control-label">更新时间：</label>
              <div class="col-sm-8">
                  <input id="updateTime" name="updateTime" th:value="${config.updateTime}" class="form-control"
                         type="text">
              </div>
          </div>
          <div class="form-group">
              <label class="col-sm-3 control-label">删除标记：</label>
              <div class="col-sm-8">
                  <input id="delFlag" name="delFlag" th:value="${config.delFlag}" class="form-control" type="text">
              </div>
          </div>-->
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "sys/config";
    $("#form-config-edit").validate({
        onkeyup: false,
        rules: {
            xxxx: {
                required: true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/editDo", $('#form-config-edit').serialize());
        }
    }
</script>
</body>
</html>
